package cloud.smalla.controller.web;

import cloud.smalla.annotation.CurrenUser;

import cloud.smalla.entity.User;
import cloud.smalla.utils.RedisUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 功能描述
 * web端登录接口
 *
 * @author 邱彦祥
 * 时间：2023-03-31 17:04
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    RedisUtils redisUtils;



    @GetMapping("/info")
    public Object getUserId(@CurrenUser User user) {
        return user;
    }
}
